import request from '@/utils/request'

// 查询社保维护列表
export function listSocial(query) {
  return request({
    url: '/sl/social/list',
    method: 'get',
    params: query
  })
}

// 查询社保维护详细
export function getSocial(userName) {
  return request({
    url: '/sl/social/' + userName,
    method: 'get'
  })
}

// 新增社保维护
export function addSocial(data) {
  return request({
    url: '/sl/social',
    method: 'post',
    data: data
  })
}

// 修改社保维护
export function updateSocial(data) {
  return request({
    url: '/sl/social',
    method: 'put',
    data: data
  })
}

// 删除社保维护
export function delSocial(socialId) {
  return request({
    url: '/sl/social/' + socialId,
    method: 'delete'
  })
}
